package com.franklin.ideaplugin.easytesting.rpc;

import com.franklin.ideaplugin.easytesting.common.entity.ETRsp;
import com.franklin.ideaplugin.easytesting.entity.ExecuteResult;

/**
 * @author Ye Junhui
 * @since 2023/6/21
 */
@FunctionalInterface
public interface IExecuteResultHandler<T> {

    /**
     * 忽略响应
     */
    IExecuteResultHandler DISCARD = executeResult -> {};

    /**
     * 处理响应
     * @param t
     */
    void handleResult(T t);
}
